<extend name="Public/base" />

<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="{:U('Auth/index')}" class="tip-bottom">权限管理</a><a href="javascript:void(0);" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
		        	<div class="widget-title">
		        		<ul class="nav nav-tabs">
		        			<li style="width:100px; text-align:center;"><a href="{:U('auth',array('group_id'=>I('group_id')))}">访问授权</a></li>
		        		<!-- 	<li style="width:100px; text-align:center;"><a href="{:U('category',array('group_id'=>I('group_id')))}">分类授权</a></li> -->
							<li class="active" style="width:100px; text-align:center;"><a href="javascript:void(0);">{$meta_title}</a></li>
		            	</ul>
		          	</div>
		          	<div class="widget-content tab-content">
		          		<h5 style="color:red;">成员授权目前只适用分配新创建并且无权限的员工，已有权限的员工需在员工管理页面中的授权功能进行授权！</h5>
		            	<div class="tab-pane active">
		            		<!-- 用户列表 -->
		              		<div class="widget-content ">
								<table class="table table-bordered table-striped with-check">
									<thead>
										<tr>
											<th><input type="checkbox" /></th>
											<th>UID</th>
											<th>昵称</th>
											<th>最后登录时间</th>
											<th>最后登录IP</th>
											<th>状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<notempty name="_list">
										<volist name="_list" id="vo">
											<tr>
												<td class="taskStatus"><input type="checkbox" value="{$vo.uid}" name="uid[]" class="uids"/></td>
												<td class="taskStatus">{$vo.uid}</td>
												<td class="taskStatus">{$vo.member_name}</td>
												<td class="taskStatus">{$vo.last_login_time|time_format}</td>
												<td class="taskStatus">{:long2ip($vo['last_login_ip'])}</td>
												<td class="taskStatus">{$vo.status_text}</td>
												<td class="taskStatus">
													<a href="{:U('removeUserFromGroup',array('uid'=>$vo['uid'],'group_id'=>I('group_id')))}" class="ajax-get">取消授权</a>
												</td>
											</tr>
										</volist>
									<else/>
										<tr>
											<td colspan="7" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
										</tr>
									</notempty>
									</tbody>
								</table>
								<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
									{$_page}
								</div>
							</div>
							<!-- 增加按钮 -->
							<form action="{$post_url}" class="form-horizontal add_users" method="post">
								<div class="controls">
									<button class="btn btn-success pull-right ajax-post" url="{:U('user')}" target-form="add_users" type="submit">新增</button>
									<input type="text" onkeyup="value=value.replace(/[\uFF00-\uFFFF]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\uFF00-\uFFFF]/g,''))" maxlength="16" name="uid" class="ui-wizard-content pull-right" placeholder="请输入uid,多个用英文逗号分隔" >
									<input type="hidden" name="group_id" value="{:I('group_id')}">
								</div>
							</form>
		            	</div>
		          </div>
		        </div>
			</div>
		</div>
		<div class="row-fluid"></div>
	</div>
</div>
<script type="text/javascript">
highlight_subnav("{:U('Auth/index')}");
</script>
</block>
